package com.zxy.feignclients;

import com.zxy.feignclients.fallback.ProductFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "product-client",fallbackFactory = ProductFallback.class)
public interface ProductClients {

    @GetMapping("/product")
    String product(@RequestParam("id") Integer id);
}
